<!--办件量-窗口详情item-->
<template>
	<view class="win-item">
		<label class="win-item_num">{{idx + 1}}</label>
		<view class="win-item_name">{{item.title}}</view>
		<text>{{item.code}}</text>
		<text class="last-text">{{item.nums}}</text>
		<view class="right-box">
			<image v-if="props.pageType=='2'" src="/static/firstpage/up.png" alt="" class="img2"></image>
			<image v-if="props.pageType=='3'" src="/static/firstpage/down.png" alt="" class="img2"></image>
			<view class="upText" v-if="props.pageType=='2'">{{item.upValue}}</view>
			<view class="downText" v-if="props.pageType=='3'">{{item.downValue}}</view>
		</view>
	</view>
	<view v-if="showMore" class="more" @tap="MoreFn">查看更多>></view>
</template>

<script setup>
import {ref} from "vue"
const props = defineProps({
	item: {
		type: Object,
		default: function(){
			return {
				
			}
		}
	},
	idx: [Number, String],
	showMore: false,
	pageType:''
});
const emit = defineEmits(['more'])
const MoreFn = ()=>{
	emit('more')
}
</script>

<style lang="sass" scoped>
.win-item
	display: flex
	flex: 1
	padding-bottom: 26rpx
	padding-top: 26rpx
	align-items: center
	// justify-content:space-between
	position: relative
	&:after
		content: ""
		position: absolute
		left: 32rpx
		right:40rpx
		bottom: 0
		height: 2rpx
		background: #F6F6F6
	.win-item_num
		padding: 0 5rpx
		height: 34rpx
		font-size: 32rpx
		color:#ffffff
		font-weight: bold
		background: #455BDF
		border-radius: 5rpx
		text-align: center
		margin-left: 32rpx
		line-height: 34rpx
	.win-item_name
		font-size: 28rpx
		line-height: 34rpx
		height: 34rpx
		overflow: hidden
		text-overflow: ellipsis
		white-space: nowrap
		font-family: Source Han Sans CN
		font-weight: 400
		color: #1B1D20
		margin-left: 25rpx
		width: 400rpx
	text
		font-size: 28rpx
		font-family: Source Han Sans CN
		font-weight: 400
		color: #455BDF
		width: 100rpx
		text-align: right
	.last-text
		font-weight: bold
		margin-left: 75rpx
		margin-right: 40rpx
	text:last-child
		font-weight: bold
		margin-left: 75rpx
		margin-right: 40rpx
		
.more
	height: 90rpx
	line-height: 90rpx
	text-align: center
	font-size: 28rpx
	font-family: Source Han Sans CN
	font-weight: 400
	color: #455BDF
.right-box
	display: flex
	margin-left: 25rpx
.img2 
	width: 13rpx
	height: 19rpx
	margin-top:10rpx
	margin-right:10rpx
.upText
	color: #FB453B
.downText
	color: #219821
</style>
